<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><?php echo $article['title'];?>_go_golang</title>
    <meta name="keywords" content="go,golang,go语言,go教程,go学习"/>
    <meta name="description" content="<?php echo sub_html($article['content'], 100);?>"/>
    <link rel="stylesheet" type="text/css" href="/assets/auicss/aui.css?v=1" />
    <link rel="stylesheet" href="/assets/css/normalize.css">
    <link rel="stylesheet" href="/assets/css/main.css">
    <style>
        .c{width: 1200px; margin: 0 auto;}
        .c_left{width: 800px; float: left;}
        .c_right{width: 400px; float: right;}
        .footer{clear: both; width: 100%}
        .aui-list{border-top: 0;}
        .main-nav .active{color: #ff7400;}
        .aui-card-list-footer span{font-size: 14px;}
        .aui-card-list-content, .aui-card-list-content-padded{line-height: 30px;}
        .aui-card-list-content-padded{padding: 0 0.75rem; text-indent: 35px;}
        .aui-card-list-header, .aui-card-list-footer{padding: 0 0.75rem; min-height: 2rem;}
        .aui-card-list a{display: block;}
        .aui-card-list a:hover,  a.aui-list-item:hover{background-color: #f0fafb; cursor: pointer;}
        a.aui-list-item{display: block; color: #212121}
        .aui-list .aui-ellipsis-2{display:-webkit-box; font-size: 14px;}
        .aui-card-list-footer .lj{background: none; display: block;}
        .aui-card-list-footer .lj:hover{background: none;}
    </style>
</head>
<body>
<!-- header -->
<?php
include_once 'inc_nav.php';
?>
<div class="header-placeholder"></div>
<div class="c">
    <div class="c_left aui-margin-t-15 aui-margin-b-15">
        <section class="aui-content">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-margin-b-15">
                    <?php echo $article['title'];?>
                </div>
                <div class="aui-card-list-footer aui-border-b">
                    <span>作者：<?php echo $article['author'];?> <?php echo $article['author_wx'] ? '| 微信：' . $article['author_wx'] : ''?></span>
                    <span>来源：<?php echo resource('tid',$article['tid']);?></span>
                    <span>点击：<?php echo $article['view'];?></span>
                    <span>时间：<?php echo date_str($article['ctime']);?></span>
                </div>
                <div class="aui-card-list-content-padded aui-border-b aui-margin-t-15 aui-margin-b-15 aui-padded-b-15">
                    <?php echo nl2br($article['content']);?>
                    <?php
                    if ($article['url']) {
                        echo '<br/>...';
                    }
                    ?>
                </div>
                <?php
                if ($article['url']) {
                    ?>
                    <div class="aui-card-list-footer aui-text-center">
                        <a class="aui-text-info lj" target="_blank" href="<?php echo $article['url'];?>">︾查看完整图文 → go</a>
                    </div>
                <?php
                }
                ?>
            </div>
        </section>

        <div class="aui-content">
            <ul class="aui-list aui-media-list">
                <li class="aui-list-header">相关精彩文章</li>
                <?php
                foreach ($xg as $v) {
                    ?>
                    <a target="_blank" href="<?php echo site_url('home/v/'.$v['id'])?>" title="<?php echo $v['title'];?>" class="aui-list-item aui-list-item-arrow">
                        <div class="aui-media-list-item-inner">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-text">
                                    <div class="aui-list-item-title"><?php echo $v['title'];?></div>
                                    <div class="aui-list-item-right"><?php echo date('m-d', $v['ctime']);?></div>
                                </div>
                                <div class="aui-list-item-text aui-ellipsis-2">
                                    <?php echo sub_html($v['content'], 100);?>
                                </div>
                            </div>
                        </div>
                    </a>
                    <?php
                }
                ?>
            </ul>
        </div>

    </div>

    <div class="c_right">
        <?php include_once 'inc_right.php'; ?>
    </div>
</div>
<?php
view_include('home/inc_foot');
?>
<script type="text/javascript">
    to_url('<?php echo $article['url'];?>');
</script>
</body>
</html>